package com.huawei.appgallery.foundation.ui.framework.fragment.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.LinearLayout;
import huawei.widget.HwTextView;
import o.dky.h;
import o.dky.i;

public class SwitchTabHintView extends LinearLayout {
    private ImageView ˊ;
    private HwTextView ˋ;
    private HwTextView ˎ;
    private View ॱ;

    public SwitchTabHintView(Context context) {
        super(context);
        ˋ(context);
    }

    public SwitchTabHintView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        ˋ(context);
    }

    private void ˋ(Context context) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        this.ॱ = LayoutInflater.from(context).inflate(i.ˋᐝ, null);
        this.ˊ = (ImageView) this.ॱ.findViewById(h.ˋˊ);
        this.ˋ = (HwTextView) this.ॱ.findViewById(h.ˊᐝ);
        this.ˎ = (HwTextView) this.ॱ.findViewById(h.ˋᐝ);
        addView(this.ॱ, layoutParams);
    }

    public void setImgRotation(int i) {
        if (this.ˊ != null) {
            this.ˊ.setRotation((float) i);
        }
    }

    public void setDirection(int i) {
        if (this.ˋ != null) {
            this.ˋ.setText(i);
        }
    }

    public void setNextTab(String str) {
        if (this.ˎ != null) {
            this.ˎ.setText(str);
        }
    }

    public void ˋ() {
        if (this.ॱ != null) {
            this.ॱ.setVisibility(8);
        }
    }

    public void ˎ() {
        if (this.ॱ != null && this.ॱ.getVisibility() == 8) {
            this.ॱ.setVisibility(0);
        }
    }
}
